package com.siegelion.section.netTest;

import androidx.lifecycle.LiveData;

import com.siegelion.section.login.viewmodels.BaseViewModel;


public class NewsViewModel extends BaseViewModel {

    public LiveData<NewsResponse> news;

    public void getNews() {
        NewsRepository newsRepository = new NewsRepository();
        failed = newsRepository.failed;
        news = newsRepository.getNews();
    }
}